import '../util.dart';

class VersionModel {
  String versionName;
  String uploadTime;
  String content;
  String androidUrl;
  String iosUrl;
  int status;

  VersionModel({
    required this.status,
    required this.versionName,
    required this.uploadTime,
    required this.content,
    required this.androidUrl,
    required this.iosUrl,
  });

  factory VersionModel.fromJson(Map<String, dynamic> json) => VersionModel(
        versionName: json['versionName'].toString(),
        uploadTime: json['uploadTime'].toString(),
        content: json['modifyContent'].toString(),
        androidUrl: json['androidUrl'].toString(),
        iosUrl: json['iosUrl'].toString(),
        status: numVal(json['status']).toInt(),
      );
}
